package com.arlin.spring.context;

import java.util.Map;

/**
 * @ClassName: SpringContext
 * @Description: TODO
 * @Author: arlin
 * @Date: 2021/12/11
 */
public interface SpringContext {

    Object getBean(String beanName);

    Object getBean(Class<?> clazz);

    void setBean(String beanName, Object bean);

    void setBean(Class<?> clazz, Object bean);

    void dispose();

    Map<String, Object> getIOCContext();

    void setDefinition(String beanName, BeanDefinition beanDefinition);

    BeanDefinition getDefinition(String beanName);
}
